/*
 * CIR2NED.h
 *
 *  Created on: Aug 3, 2011
 *      Author: ramble
 */

#ifndef CIR2NED_H_
#define CIR2NED_H_

class Cir2NED 
{
public:
	Cir2NED();
	void SetInitIR(double latitude, double longitude, double altitude);
	bool IRtoNED(double latitude,double longitude,double altitude,double & ret_n,double & ret_e,double & ret_d);
	~Cir2NED();
protected:

	void IRtoECEF(double &latitude,double &longitude,double &altitude);
	double semimajor_axis_length;
	double eccentricity_of_earth;
	double one_minus_e;

	double org_n;
	double org_e;
	double org_d;
	bool init_tag;
};

#endif /* CIR2NED_H_ */
